package com.hellojava.jpa;

import com.hellojava.entity.OcrHistory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author dengjihai
 * @create 2017-12-22
 **/
public interface OcrHistoryRepository extends JpaRepository<OcrHistory, String>,
        JpaSpecificationExecutor<OcrHistory> {

    List<OcrHistory> findByOpenIdOrderByCreateTimeDesc(String openId);

    OcrHistory findByLogId(String logId);

}
